package com.kehutong.charge.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.kehutong.charge.util.enums.ResidentsTypeEnum;

import java.sql.Timestamp;

/**
 * @program: kht
 * @description: 缴费单记录导出实体
 * @author: jian Ye
 * @create: 2021/8/9
 **/
@ColumnWidth(25)
@ExcelIgnoreUnannotated
public class PayBillRecordsExcelVO {


    @ExcelProperty(value="缴费单编号")
    private String payBillNo;
    @ExcelProperty(value="关联缴费")
    private String payOrderNo;

    @ExcelProperty(value="缴费用户")
    private String chargeName;

    private ResidentsTypeEnum residentsType;
    @ExcelProperty(value="住户类型")
    private String residents;

    @ExcelProperty(value="缴费单地址")
    private String houseInfo;

    @ExcelProperty(value="生成时间")
    private Timestamp createTime;


   /* private EnableStateEnum EnableStat;

    @ExcelProperty(value="状态")
    private String enableState;

    //特殊处理
    public String getEnableState() {
        return EnableStat.getId().equals("1")?"已失效":(EnableStat.getId().equals("0")?"生效":"--");
    }

    public EnableStateEnum getEnableStat() {
        return EnableStat;
    }

    public void setEnableStat(EnableStateEnum enableStat) {
        EnableStat = enableStat;
    }*/

    public String getPayBillNo() {
        return payBillNo;
    }

    public void setPayBillNo(String payBillNo) {
        this.payBillNo = payBillNo;
    }

    public String getPayOrderNo() {
        return payOrderNo;
    }

    public void setPayOrderNo(String payOrderNo) {
        this.payOrderNo = payOrderNo;
    }

    public String getHouseInfo() {
        return houseInfo;
    }

    public void setHouseInfo(String houseInfo) {
        this.houseInfo = houseInfo;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getChargeName() {
        return chargeName;
    }

    public void setChargeName(String chargeName) {
        this.chargeName = chargeName;
    }

    public ResidentsTypeEnum getResidentsType() {
        return residentsType;
    }

    public void setResidentsType(ResidentsTypeEnum residentsType) {
        this.residentsType = residentsType;
    }

    public String getResidents() {
        if(null != residentsType){
            return residentsType.getDesc();
        }

        return residents;
    }
}
